<%@ page import="gdepot.TransactionRecord" %>
<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main">
    <g:set var="entityName" value="${message(code: 'transactionRecord.label', default: 'TransactionRecord')}"/>
    <title><g:message code="default.show.label" args="[entityName]"/></title>
</head>

<body>
<div class="row">
    <div class="container">
        <ol class="breadcrumb">

            <li><g:link controller="transactionRecord" action="index">TransactionRecord</g:link></li>
        </ol>
    </div>
</div>

<g:if test="${flash.message}">
    <div class="alert alert-warning">
        <a href="#" class="close" data-dismiss="alert">
        &times;
        </a>
        <strong>${flash.message}</strong>
    </div>
</g:if>

<sec:ifAllGranted roles="ROLE_SYSTEM_MANAGER">
    <div class="row" style="padding-bottom:10px">
        <div class="container">
            <div class="col-sm-9"></div>

            <div class="col-sm-3" align="right" style="padding:0px">
                <ul class="list-inline">
                    <li>
                        <g:form url="[resource: transactionRecordInstance, action: 'delete']" method="DELETE">
                            <g:actionSubmit class="btn btn-default btn-sm" action="delete" value="删除"/>
                        </g:form>
                    </li>
                    <li><g:link action="edit" resource="${transactionRecordInstance}" class="btn btn-default btn-sm">编辑</g:link></li>
                    <li><g:link action="create" class="btn btn-default btn-sm">新建</g:link></li>
                </ul>
            </div>
        </div>
    </div>
</sec:ifAllGranted>

<div class="row">
    <div class="container">

        <table class="table table-bordered table-hover">
            <tr>
                <td width="30%">订单号</td>
                <td width="70%">    <g:if test="${transactionRecordInstance.orderSerialNumber}"><g:fieldValue bean="${transactionRecordInstance}" field="orderSerialNumber"/></g:if></td>
            </tr>
            <tr>
                <td width="30%">版本号</td>
                <td width="70%">    <g:if test="${transactionRecordInstance.versionCode}"><g:fieldValue bean="${transactionRecordInstance}" field="versionCode"/></g:if></td>
            </tr>
            <tr>
                <td width="30%">支付类型</td>
                <td width="70%">    <g:if test="${transactionRecordInstance.payType}"><g:fieldValue bean="${transactionRecordInstance}" field="payType"/></g:if></td>
            </tr>
            <tr>
                <td width="30%">金额</td>
                <td width="70%">    <g:if test="${transactionRecordInstance.transactionAmount}"><g:fieldValue bean="${transactionRecordInstance}" field="transactionAmount"/></g:if></td>
            </tr>
            <tr>
                <td width="30%">描述</td>
                <td width="70%">    <g:if test="${transactionRecordInstance.description}"><g:fieldValue bean="${transactionRecordInstance}" field="description"/></g:if></td>
            </tr>
            <tr>
                <td width="30%">支付状态</td>
                <td width="70%">    <g:if test="${transactionRecordInstance.payStatus}"><g:fieldValue bean="${transactionRecordInstance}" field="payStatus"/></g:if></td>
            </tr>
            <tr>
                <td width="30%">响应码</td>
                <td width="70%">    <g:if test="${transactionRecordInstance.responeCode}"><g:fieldValue bean="${transactionRecordInstance}" field="responeCode"/></g:if></td>
            </tr>
            <tr>
                <td width="30%">响应码</td>
                <td width="70%">    <g:if test="${transactionRecordInstance.responeDescription}"><g:fieldValue bean="${transactionRecordInstance}" field="responeDescription"/></g:if></td>
            </tr>
            <tr>
                <td width="30%">订单</td>
                <td width="70%">    <g:if test="${transactionRecordInstance.order}"><g:link controller="orders" action="show"
                                                                                            id="${transactionRecordInstance?.order?.id}">${transactionRecordInstance?.order?.encodeAsHTML()}</g:link>
                </g:if></td>
            </tr>
            <tr>
                <td width="30%">使用的账户</td>
                <td width="70%"><g:if test="${transactionRecordInstance.accountBank}"><g:link controller="accountBank"
                                                                                                  action="show"
                                                                                                  id="${transactionRecordInstance?.accountBank?.id}">${transactionRecordInstance?.accountBank?.encodeAsHTML()}</g:link>
                </g:if></td>
            </tr>
            <tr>
                <td width="30%">创建日期</td>
                <td width="70%">    <g:if test="${transactionRecordInstance.createDate}"><g:formatDate bean="${transactionRecordInstance}" field="createDate"/></g:if></td>
            </tr>
            <tr>
                <td width="30%">修改日期</td>
                <td width="70%">    <g:if test="${transactionRecordInstance.modifiedDate}"><g:formatDate bean="${transactionRecordInstance}" field="modifiedDate"/></g:if></td>
            </tr>

        </table>
    </div>
</div>

</body>
</html>
